package com.etc.dao;

import java.util.List;

import com.etc.entity.Bus;
import com.etc.entity.BusInfo;
import com.etc.util.PageData;

public interface BusDao {
	
	//增加车辆
	public boolean insertBus(Bus bus);
	
	//删除
	public boolean delBus(int id);
	
	//修改车辆信息
	public boolean updateBus(BusInfo busInfo);
	
	//查询车辆信息
	public List<Bus> queryBus();
	
	//查询车辆详细信息
	public PageData queryBusByLikeAndLimit(int pageNo, int pageSize);
	
	//根据站点名查询站点编号
	public int querySiteId(String name);
	
	//根据站点名查询车辆编号和终点站
	public List<BusInfo> queryBusIdAndEnd(String name);
	
	//根据车辆编号查询车辆路线
	public List<String> queryBusRoute(int b_id);
	
	//根据出发地,到达地查询车辆路线
	public List<String> queryBusRoutes(String begin,String end);
}
